home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-MIPS / TIMEX.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  741b  |  21 lines

  1. /* $Id: timex.h,v 1.1 1998/08/17 10:20:18 ralf Exp $
  2.  *
  3.  * This file is subject to the terms and conditions of the GNU General Public
  4.  * License.  See the file "COPYING" in the main directory of this archive
  5.  * for more details.
  6.  *
  7.  * Copyright (C) 1998 by Ralf Baechle
  8.  *
  9.  * FIXME: For some of the supported machines this is dead wrong.
  10.  */
  11. #ifndef __ASM_MIPS_TIMEX_H
  12. #define __ASM_MIPS_TIMEX_H
  13.  
  14. #define CLOCK_TICK_RATE    1193180 /* Underlying HZ */
  15. #define CLOCK_TICK_FACTOR    20    /* Factor of both 1000000 and CLOCK_TICK_RATE */
  16. #define FINETUNE ((((((long)LATCH * HZ - CLOCK_TICK_RATE) << SHIFT_HZ) * \
  17.     (1000000/CLOCK_TICK_FACTOR) / (CLOCK_TICK_RATE/CLOCK_TICK_FACTOR)) \
  18.         << (SHIFT_SCALE-SHIFT_HZ)) / HZ)
  19.  
  20. #endif /*  __ASM_MIPS_TIMEX_H */
  21.